import vueRouter from 'vue-router';
import tab1 from '../views/tab1.vue';
import tab2 from '../views/tab2.vue';
const router = new vueRouter({
    mode: "history",
    routes:
        [
            {
                path: '/',
                redirect: "/tab1"
            },
            {
                name: 'tab1',
                path: '/tab1',
                component: tab1
            },
            {
                name: 'tab2',
                path: '/tab2',
                component: tab2
            }
        ]
})
export default router;